{include file="entete.tpl"}
{literal}
<script type="text/javascript" src= "/PariGest/pages/js/prototype.js"></script>
<script type="text/javascript">
function init()
{
  // charge la barre d'outils
}

function changeCompte()
{
  document.forms[0].submit();
}
</script>
{/literal}
<body onload="init()" >
<form action="param_parametrage.php" method="post" style="margin:0">
<input type="hidden" name="Action" id="Action" value="">
<input type="hidden" name="idParametrage" id="idParametrage" value="{$idParametrage}">
<table style="width:100%;height:100%" border=0 cellspacing=0 cellpadding=0> 
  <tr>
    <td valign=top>
      <table border=0 >
        <tr>
          <td>Compte</td>
          <td colspan=2>
            <select id="idCompte" name="idCompte" onChange="changeCompte()">
              {foreach from=$stmtCompte item=compte}
                {html_options values=$compte.IdCompte output=$compte.Libelle selected=$IdCompteSelected}               
              {/foreach}
            </select>
          </td>
        </tr>
        <tr>
          <td>Mise mini.</td>
          <td colspan=2><input type=text id="MiseMini" name="MiseMini" size=4 value="{if isset($MiseMini)}{$MiseMini}{/if}" onChange="verifCtrl(this)">&nbsp;€</td>
        </tr>
        <tr>
          <td>Bénéfice mini.</td>
          <td><input type=text id="BeneficeMini" name="BeneficeMini" size=4 value="{if isset($BeneficeMini)}{$BeneficeMini}{/if}" onChange="verifCtrl(this)">&nbsp;€</td>
          <td style="width:100%"><input type="checkbox" id="ModeCumule" name="ModeCumule" class="cursmain" {if  isset($ModeCumule) && $ModeCumule == '1'} checked {/if} />&nbsp;Mode cumulé</td>
        </tr>
        <tr>
          <td valign=top>Commenaire</td>
          <td colspan=2><textarea id="Commentaire" rows=10 cols=40 name="Commentaire" onChange="verifCtrl(this)">{if isset($Commentaire)}{$Commentaire}{/if}</textarea></td>
        </tr>
        </tbody>
      </table>
    </td>
  </tr>
</table>
{literal}
<script>
 ajouteCtrl({input:
 {/literal}
 $("MiseMini")
 {literal}
 , ctrl: "FLOAT", oblig: false, message: "Mise mini."}); 
 ajouteCtrl({input:
 {/literal}
 $("BeneficeMini")
 {literal}
 , ctrl: "FLOAT", oblig: false, message: "Bénéfice mini."}); 
</script>
{/literal}
</form>
<body>